import { request } from '../request';

type OrgRecord = {
  orgId: string;
  orgName: string;
  directFlag: string;
  pid: string;
  entId: string;
  entTypeCode: string;
};

// eslint-disable-next-line no-undef
export const safeGovernanceTreeDataByAss = (params: PaginationQueryParams<{ associationId: string }>) =>
  request<OrgRecord[]>({
    method: 'post',
    url: '/code/api/entOrganizationDict/safeGovernanceTreeDataByAss',
    params,
  });

// 备案企业
export const filingEntList = (params: any) =>
  request<any>({
    method: 'post',
    url: '/code/api/association/governance/selectEntListByAssociationId',
    params,
  });
